Skip to content

Conversation

@samwillis
Copy link
Contributor

Rather than rewrite the whole index on compaction, only compact modified keys, and lazily advance the version to the frontier on read.

@samwillis samwillis marked this pull request as ready for review December 22, 2024 17:34
@samwillis samwillis merged commit 4edb9b0 into main Dec 22, 2024
1 check passed
@samwillis samwillis deleted the samwillis/lazy-compaction branch December 22, 2024 17:35
cursor bot pushed a commit to samwillis/d2ts that referenced this pull request Jul 13, 2025
* Make compaction track modified keys

* SQLite index: only compact modified keys, and other improvments

* Improve compaction in sqlite index

* Remove unused prepared statements

* Remove early return for debugging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants